package com.github.kotvertolet.youtubejextractor.models.newModels;

import com.google.gson.annotations.SerializedName;
import ohos.utils.Parcel;
import ohos.utils.Sequenceable;

import java.io.Serializable;

public class UnsubscribeAccessibility implements Sequenceable, Serializable {

    @SerializedName("accessibilityData")
    private AccessibilityData accessibilityData;

    public static final Sequenceable.Producer<UnsubscribeAccessibility> CREATOR = new Producer<UnsubscribeAccessibility>() {
        @Override
        public UnsubscribeAccessibility createFromParcel(Parcel parcel) {
            // Initialize an instance first, then do customized unmarshlling.
            UnsubscribeAccessibility unsubscribeAccessibility = new UnsubscribeAccessibility();
            unsubscribeAccessibility.unmarshalling(parcel);
            return unsubscribeAccessibility;
        }
    };
    
    
    @Override
    public boolean marshalling(Parcel parcel) {
        parcel.writeSequenceable(this.accessibilityData);
        return true;
    }

    @Override
    public boolean unmarshalling(Parcel parcel) {
        parcel.readSequenceable(this.accessibilityData);
        return true;
    }

    @Override
    public String toString() {
        return "UnsubscribeAccessibility{" +
                "accessibilityData=" + accessibilityData +
                '}';
    }

    public AccessibilityData getAccessibilityData() {
        return accessibilityData;
    }

    public void setAccessibilityData(AccessibilityData accessibilityData) {
        this.accessibilityData = accessibilityData;
    }
}
